package client.gui.lobby;

import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;

import javax.swing.JPanel;

import lib.map.Map;

public class MapViewer extends JPanel {

	private static final long serialVersionUID = 1L;

	/**
	 * This is the default constructor
	 */
	String map;
	private float resize;

	public MapViewer(Dimension dim,float resize) {
		super();
		this.resize=resize;
		this.setSize(dim);
		this.setPreferredSize(dim);
	}

	public void paint(Graphics g) {
		if (map != null)
			g = new Map(map).drawMiniMap((Graphics2D) g, resize);
	}



}
